package utils;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class SpringBeanProxy {

	private static ApplicationContext applicationContext;
	static {
		applicationContext = new ClassPathXmlApplicationContext(
		        new String[] {"applicationContext.xml"});
	}
	
	public static Object getBean(String beanName){
		return applicationContext.getBean(beanName);
	}
}
